package cn.tedu.egmybatis1.ebtity.pojo.entity;

import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface Product {
    @Select("SELECT title,price,stock FROM product WHERE id=#{id}")
    Product selectProductById(Integer id);
    @Delete("DELETE FROM product WHERE id=#{productId}")
    int deleteProduct(Product product);
}
